package com.zty.BO;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author ZTY
 * @Description 一个文件分片的属性
 * @Date 1:58 2023-12-25
 **/

@Data
@Accessors(chain = true)
public class FileChunkBO {
    @NotBlank(message = "文件名不得为空")
    private String filename;
//    @NotBlank(message = "文件拓展名不得为空")
    private String extension;
    @NotNull(message = "文件分片序号不得为空")
    private Integer chunkNo;
    @NotNull(message = "文件大小不得为空")
    private Integer chunkSize;
    @NotBlank(message = "文件存储桶不得为空")
    private String bucketName;
    //  文件以字节流存储
    @NotNull(message = "文件内容不得为空")
    private byte[] bytes;

}
